import pandas as pd

df1 = pd.DataFrame({"Apples": [30], "Bananas": [21]})
print(df1)

df2 = pd.DataFrame({"Apples": [35, 41], "Bananas": [21, 34]}, index=["2017 Sales", "2018 Sales"])
print(df2)

s1 = pd.Series(["4 cups", "1 cup", "2 large", "1 can"], index=["Flour", "Milk", "Eggs", "Spam"], name="Dinner")
print(s1)

animals = pd.DataFrame({'Cows': [12, 20], 'Goats': [22, 19]}, index=['Year 1', 'Year 2'])
# Write the dataframe to a CSV file
animals.to_csv('cows_and_goats.csv')
